package com.qianniu.napi.admin.web.goods.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品子表购买须知
 * </p>
 *
 * @author hefl
 * @since 2023-12-16
 */
@TableName("t_goods_purchasing_instructions")
public class GoodsPurchasingInstructions extends Model<GoodsPurchasingInstructions> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 商品ID t_goods.id
     */
	private Long gid;
    /**
     * 有效期
     */
	@TableField("expire_date")
	private Date expireDate;
    /**
     * 不可用日期 
     */
	@TableField("disabled_date")
	private String disabledDate;
    /**
     * 预约规则
     */
	@TableField("order_rule")
	private String orderRule;
    /**
     * 使用方式
     */
	@TableField("use_rule")
	private String useRule;
    /**
     * 退款规则
     */
	@TableField("refund_rule")
	private String refundRule;
    /**
     * 其他规则
     */
	@TableField("other_rule")
	private String otherRule;
    /**
     * 状态: 0-无效, 1-有效
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("updated_time")
	private Date updatedTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Date getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(Date expireDate) {
		this.expireDate = expireDate;
	}

	public String getDisabledDate() {
		return disabledDate;
	}

	public void setDisabledDate(String disabledDate) {
		this.disabledDate = disabledDate;
	}

	public String getOrderRule() {
		return orderRule;
	}

	public void setOrderRule(String orderRule) {
		this.orderRule = orderRule;
	}

	public String getUseRule() {
		return useRule;
	}

	public void setUseRule(String useRule) {
		this.useRule = useRule;
	}

	public String getRefundRule() {
		return refundRule;
	}

	public void setRefundRule(String refundRule) {
		this.refundRule = refundRule;
	}

	public String getOtherRule() {
		return otherRule;
	}

	public void setOtherRule(String otherRule) {
		this.otherRule = otherRule;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "GoodsPurchasingInstructions{" +
			"id=" + id +
			", gid=" + gid +
			", expireDate=" + expireDate +
			", disabledDate=" + disabledDate +
			", orderRule=" + orderRule +
			", useRule=" + useRule +
			", refundRule=" + refundRule +
			", otherRule=" + otherRule +
			", state=" + state +
			", createTime=" + createTime +
			", updatedTime=" + updatedTime +
			"}";
	}
}
